package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Param;

public interface CheckGroupDao {

    Boolean add(CheckGroup checkGroup);

    Boolean setCheckGroupAndCheckItem(@Param("gid")Integer gid, @Param("ids") Integer[] ids);

    void deleteCheckGroupAndCheckItem(Integer gid);

    Page<CheckGroup> findAll(String queryString);

    void deleteById(Integer id);

    void edit(CheckGroup checkGroup);

    CheckGroup findById(Integer id);

}
